<template>
    <div>
        <Header v-if="showHeader" :title="title"></Header>
        <div class="performance_content">
            <UserInfo :userInfo="userInfo"></UserInfo>
            <CheckList></CheckList>
        </div>
    </div>
    
</template>
<script>
import UserInfo from '@/components/UserInfo.vue'
import CheckList from '@/components/CheckList.vue'
import Header from "@/components/Header.vue";
import { profile} from "@/request/api.js";
export default {
    name:'MyPerformance',
    data(){
        return {
            showHeader:this.$store.state.showHeader,
            title:'绩效结果',
            fd_sta_id:'',
            userInfo:{},
            checkListData:[]
        }
    },
    components:{UserInfo,CheckList,Header},
    mounted(){
        // console.log(this.$route.query.staffer_id);
        this.fd_sta_id = this.$route.query.staffer_id;
        profile({token:this.$store.state.token,fd_sta_id:this.fd_sta_id}).then(res=>{
            // console.log(111)
            // console.log(res);
            this.userInfo = res.data.staffer;
        }).catch(err=>{
            console.log(err)
        })
    }
}
</script>
<style lang="less" scoped>
.performance_content{padding: 10px 20px;}
</style>